package han.entity;

/**
 * @author: Han
 * @date: 2018/7/11 16:10
 * @dscription: 好友消息
 */
public class FriendMessageEntity implements MessageEntity {

    private String type;
    private String content;
    private long fromUin;
    private long toUin;
    private long msgType;
    private long time;

    public FriendMessageEntity(String type, String content, long fromUin, long toUin, long msgType, long time) {
        this.type = type;
        this.content = content;
        this.fromUin = fromUin;
        this.toUin = toUin;
        this.msgType = msgType;
        this.time = time;
    }

    @Override
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public long getUin() {
        return fromUin;
    }

    @Override
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public long getFromUin() {
        return fromUin;
    }

    public void setFromUin(long fromUin) {
        this.fromUin = fromUin;
    }

    public long getToUin() {
        return toUin;
    }

    public void setToUin(long toUin) {
        this.toUin = toUin;
    }

    public long getMsgType() {
        return msgType;
    }

    public void setMsgType(long msgType) {
        this.msgType = msgType;
    }

    @Override
    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "FriendMessageEntity{" + "type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", fromUin=" + fromUin +
                ", toUin=" + toUin +
                ", msgType=" + msgType +
                ", time=" + time +
                '}';
    }
}
